<!-- target:calendar -->
<div class="venue-order-page grey-bg">
    <form name="venue_order_search_form" class="sort-form ui-hide">
        <input name="venueId" class="ui-hide" value="${venueId}" />
        <input name="yardId" class="ui-hide" value="${yardId}" />

    </form>
    <div class="venue-odrer-top white-bg">
        <div class="left-wrap">
            <span ui="type:NS.VenueFilterSelectEdit;id:order-venue;title:场馆;view:venue_selected;items:&{NS.venues};text:全国;" class="venue"></span>
        </div>
        <div class="title-wrap">
            <strong ui="ext-data:CalendarTitle@()">=$</strong>
            <span class="help" ui="type:mao.ui.ShowImg;title:帮助;img:images/order/help.png"></span>
        </div>
        <div class="right-wrap">
            <span class="search" ui="ext-link" href="#/venueOrder/search~DENY_CACHE"></span>
            <span class="ui-filter filter" ui="type:NS.FilterPopupButton">
                <form name="venue_order_search_filter_form">
                <!-- use:status_selected(items=${NS.status},name='筛选') -->
                </form>
            </span>
        </div>
    </div>
    <div class="month-head grey-bg" id="month_head">
        <form class="date-form" name="venue_order_search_date_form">
            <div ui="type:NS.MonthView;id:venue-order-month-view;date:${day}"></div>
        </form>
        <div class="info" id="count_info" ui="type:NS.ListViewControl">
            <div class="title">定场信息</div>
            <div class="info-cont">
                <span class="info-item"><span class="label">预定</span><span ui="ext-data:PreviewCount@()" class="info-num">=$</span></span>
                <span class="info-item"><span class="label">定场</span><span ui="ext-data:OrderCount@()" class="info-num">=$</span></span>
                <span class="line"></span>
                <span class="info-item"><span class="label">总计</span><span ui="ext-data:TotalCount@()" class="info-num">=$</span></span>
            </div>
        </div>
    </div>
    <a class="calendar-order-add" id="calendarOrderAdd" href="#/venueOrder/edit~orderType=1~DENY_CACHE"></a>
    <ul ui="type:NS.MListView;id:venue-order-list-view;"></ul>
</div>

<!-- target: venue_orderItem -->
<!-- var:actionClass = ['', 'venue-order-item-red', 'venue-order-item-green', 'venue-order-item-blue'] -->
<!-- var:route = ${item.order.id} !== '0' ? '#/venueOrder/detail~id=' + ${item.order.id} : '#/venueOrder/scene~id=' + ${item.id} -->
<li ui="ext-link" href="${route}~DENY_CACHE" class="venue-order-item venue-order-item-${item.actionCutting} ={${actionClass}[${item.actionCutting}]}">
    <div class="order-info">
        <div class="order-title">
            <span class="short">${item.contract.typeName}</span>
            <div class="title">${item.projectContent} ${item.roundName}</div>
        </div>
        <!-- var:projectType = Array.prototype.map.call(${item.projectTypeList} || [], function (item) { return item.projectName }).join(' | ') -->
        <div class="tag"><icon ui="type:icon;size:188;name:tag"></icon>${projectType|default}</div>
        <div class="venue"><icon ui="type:icon;size:188;name:position"></icon>${item.venueName} - ${item.yardName}</div>
        <div class="time"><icon ui="type:icon;size:188;name:time"></icon>${item.startTime|dateFormat('yyyy-MM-dd HH:mm')}</div>

        <!-- if:${item.roundState} === 0 || ${item.roundState} === 1 -->
            <!-- if:${item.state} -->
            <span class="status">预订</span>
            <!-- else -->
            <span class="status">意向</span>
            <!-- /if -->
        <!-- else -->
            <span class="status">已订</span>
        <!-- /if -->
    </div>
</li>



<!-- target: status_selected -->
<!-- // 筛选项 模板 -->
<div class="sort-container">
    <div class="sort_section" ui="type:m-panel">
        <!-- for: ${items} as ${item}, ${key} -->

            <!-- if: ${item.type} === 'slide' -->
            <div ui="type:mao.ui.Slider;flag:floorPrice;scale:={JSON.stringify(${item.scale})}" class="price-slider">
                <input type="text" name="dayActionCutting" class="ui-hide">
                <div class="sort_title">
                    <div>${item.title}</div>
                    <div class="car-age">不限</div>
                </div>
                <ul class="slider-scale">
                    <!-- for: ${item.scale} as ${scale} -->
                    <li>${scale}</li>
                    <!-- /for -->
                </ul>
            </div>
            <!-- else -->
            <div class="carlvl">
                <p class="sort_title">${item.title}</p>
                <!-- if: ${item.type} === 'checkbox' -->
                    <input type="text" name="${key}" ui="type:ecui.esr.CreateArray" class="ui-hide">
                    <ul>
                        <li class="active" ui="type:checkbox;checked;id:${key}-all">全部
                        </li>
                        <!-- for: ${item.items} as ${_item} -->
                            <li class="active" ui="type:checkbox;name:${key};value:${_item.value};={${_item.value} === '' ? 'checked' : ''};subject:${key}-all;">${_item.code}</li>
                        <!-- /for -->
                    </ul>
                <!-- else -->
                    <ul>
                        <!-- for: ${item.items} as ${_item} -->
                            <li class="active" ui="type:Radio;name:${key};value:${_item.value};={${_item.value} === '' ? 'checked' : ''}">${_item.code}</li>
                        <!-- /for -->
                    </ul>
                <!-- /if -->
            </div>
            <!-- /if -->
        <!-- /for -->
    </div>
    <div class="btn_group">
        <div class="confirm-button" ui="type:mao.ui.FilterSingleSelectSure;shownum:true;">确定</div>
    </div>
</div>